# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Alois Nespor <alium at artixlinux.org>

pkgname=pdfarranger
pkgver=1.9.2
pkgrel=2
pkgdesc='Helps merge or split PDF documents and rotate, crop and rearrange pages'
arch=(any)
url='https://github.com/pdfarranger/pdfarranger'
license=(GPL3)
depends=(gtk3 python-gobject python-cairo python-pikepdf python-dateutil ghostscript python-setuptools poppler-glib)
optdepends=('img2pdf: support for image files')
makedepends=(python-distutils-extra)
source=($url/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('e0e08ddc3a323940d7f05cc0e996484775ad7a0a6cbfc197b07473c452c43f66')

build () {
  cd $pkgname-$pkgver
  python setup.py build
}

package () {
  cd $pkgname-$pkgver
  python setup.py install --root="$pkgdir"
}
